Url encode the url path segments.