remove encode method, use querystring instead