check for malformed file names