Fixed #23922 -- Corrected parsing of URLs containing a # char in RequestFactory.