I haven't confirmed but I think the CRT functions work in ANSI instead of Unicode (unless you use the w prefixed ones... and at that point you're branching anyway so you haven't gained anything). Probably should try it with a utf-8 name and confirm it works or doesn't.