docs: def _decode_data(self, data, charset):
          """ Decode string data.
  
          :returns: unicode string
          """
  
          try:
              return smart_unicode(data, charset)
          except UnicodeDecodeError:
              raise errors.BadRequest('wrong charset')