def METHOD_NAME(self, s):
    if self._is_unicode(s):
        return s
    try:
        return self._to_unicode(s)
    except UnicodeDecodeError:
        res = self._to_unicode(s, ignore_errors=True)
        return res