URIUtil.encodePath is now used to encode URI