Improve Unicode file name handling in Win9x

Improved the compatibility with Windows9x by avoiding calling Unicode version API functions.