added changes for URL encoded parameters in rest calls