check for invalid file names