Test the URL parser's encoding override with the Document constructor.