def _normalize_unicode(self, s):
        if not isinstance(s, unicode):
            temp = s  # this is to help with debugging
            try:
                s = unicode(temp, self.fs_encoding)
            except __HOLE__:
                # Not all filesystems support encoding input that
                # we throw. We assume UTF-8 is a sufficiently powerful
                # "catch-all" to decode things that don't match.
                s = unicode(temp, 'utf-8')
        return s
dataset/ETHPy150Open memsql/memsql-loader/memsql_loader/vendor/glob2/impl.py/Globber._normalize_unicode