this should use normalize_uri to catch those pesky extra slashes.

````ruby
base = normalize_uri(target_uri.path)
````

At least, most other http modules do this now.