Fixed encoding of request body before sending.