Fix validation of email addresses with IDNA domains (#1490067)