Added better support for internationalized domain names

As described in [#1901][1].
[1]: https://github.com/symphonycms/symphony-2/issues/1901#issuecomment-30750179