use a URI already existing method to encode the params