fixed issue with invalid file names