fix #435: use sys_fopen and sys_open
This utilizes sys_fopen and sys_open which both have a special case to convert UTF-8 paths to Windows system paths. This should work for most cases-- testing with Windows 7 and umlaut u
in filenames it seemed to work ok.