def _to_unicode(s_or_u, encoding='utf-8', errors='strict'):
    """Make sure ``s_or_u`` is a unicode string."""
    if isinstance(s_or_u, bytes):
        return s_or_u.decode(encoding, errors=errors)
    else:
        return s_or_u
