Pike file name APIs are inconsistent on NT.
Imported from https://youtrack.roxen.com/issue/PIKE-96
Reported by @grubba
On POSIX systems file names are encoded with UTF-8.
On NT on the other hand a mix of Latin-1 and UTF-16 is used.
Change the APIs on NT to also use UTF-8 consistently.