Added a check against weird unicode filenames. Fixes #169