@lanodan “This function provides protection against IDN homograph attacks, so **in some cases** the host part of the returned URI may be in Punycode if the safety check fails.”
Do you know which are the cases where it displays the punycode and which are the cases where it doesn’t?