better handling of filenames with a dot in the title