The character 0x7E is common in 8.3 filenames. Maybe the last condition should be removed completely instead.