Check for problematic characters in filename.