avoid redundant path quoting before creating URI object