Fixed bug with URL encoding of parameters that have special characters in the param string.