use utf8 for filenames and cleanup
remove unnecessary ms workaround