doc: fix example of parsing request.url
Fixes: https://github.com/nodejs/node/issues/31301
All the problem explained in #31301 (closed).
Code example that previous version of code example in docs is incorrect: https://repl.it/@NMVikings/URL
Checklist
-
documentation is changed or added -
commit message follows commit guidelines