This passes the DOM encoding down to the URL parser, so the correct encoder can be used.
utf-8
euc-jp