class HTTParty::TextEncoder

def encoded_text

def encoded_text
  if 'utf-16'.casecmp(charset) == 0
    encode_utf_16
  else
    encode_with_ruby_encoding
  end
end