@staticmethod
    def serialize(ustr, protocol_version):
        try:
            return ustr.encode('utf-8')
        except __HOLE__:
            # already utf-8
            return ustr
dataset/ETHPy150Open datastax/python-driver/cassandra/cqltypes.py/UTF8Type.serialize