account for invalid file names