make sure url parameters are url encoded.