Adds a helper function for converting UTF-8 to UTF-16 on Windows. Also adds a fopen wrapper function for pathnames that may contain characters that are not present in the current Windows codepage.