Fix request body encoding.