make sure to url escape path components