Extract method EncodeRequestBodyImpl