Check for invalid file names