GH-123599: Remove duplicate url2pathname() implementation
#127237
Merged
url2pathname() implementation
#127237