jsdom/whatwg-url would use this, to get proper support for the [_encoding_ parameter](https://url.spec.whatwg.org/#concept-basic-url-parser), if it were available! Then `anchorElement.search` would work correctly in non-UTF-8 documents in jsdom.