Add functions to work with non-ASCII file names

Just add some functions.

Also see [Fix `fopen` and friends signatures on Windows to not accept `char*`](http://d.puremagic.com/issues/show_bug.cgi?id=8642).