Fix the logic for IDN compatible domain name regex check.