The URLs passed to the custom URL parser were not decoding the path part, but passing it directly. This caused problems if the input was correctly URL encoded. The updated code now correctly decodes the hostname+path parts, and encodes them again.