Checks whether the domain in the email_address requires conversion to ASCII and if it does it also converts it.
When the do_format is true, the output string is formatted for display, otherwise it's
encoded for use in the message headers. A null is returned when no conversion was needed.
| email_address |
an email address as string |
| do_format |
what format will be returned |
|
the See: hostname_utils_requires_ascii, sanitize_ascii_domain, utils_sanitize_ascii_domain_in_url_str |