If you are using JSON-RPC, perhaps you should encode parameters in json and not urlencode?
parameters