Fix incorrect pattern match for malicious name check.