fixing an issue with filenames containing a period