fixed uri escaping
implemented double-url-escaping
fixed escaping uri
fixed uri encoding
made use of unparsed_uri as base uri