uri encode the json payload.