when using custom parameters, url encode the param name to build a correct url