[ticket/13297] Add unicode modifier to url/email regular expression patterns

Besides, some functions calls getting replaced with their utf8 forms to allow
extensions introducing international domain names and email addresses.

<a href="https://tracker.phpbb.com/browse/PHPBB3-13297">PHPBB3-13297</a>.