won't die anymore on non-ascii-chars in filenames.

your original code dies when the filename contains non-ascii-characters (like umlauts in german). this fixes it by omitting the characters in question. though if you grab a file that's entirely made up of non-ascii-chars ... well ...figure it out :)