Encode the url path back