[ticket/12926] Support for IDN (IRI)

Add international domain name support for URLs.
IDN for emails is unsupported yet.

<a href="https://tracker.phpbb.com/browse/PHPBB3-12926">PHPBB3-12926</a>.