rename encode to uriEncode