The use of sys_gethomedir() in files.c causes problems when the system homedir path contains non-ascii characters like 'Ø', because the Windows filefunctions that use ascii characters can't find the directory path.
As an example the fopen() function returns a null pointer to the file opened when homedir contains 'Ø' and the following actions on that filepointer crashes.