fix lookup of filenames containing non-ascii characters

possible fix for #353