resolve-uri with a target-uri on a different host

Previously:
(resolve-uri "http://a/b" "http://c/d") => "http://a/d" which is not correct. this is fixed.