Two URL parser fixes
This PR is an alternative to https://github.com/nodejs/node/pull/24218 that resolves #24211 (closed) and #24345 (closed) without #24218's performance regression.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included documentation is changed or added-
commit message follows commit guidelines