def decode(data):
    """
    Decode byte to string in utf-8
    :param data: Byte or str
    :return: Decoded string
    :raises: TypeError
    """
    if isinstance(data, str):
        return data
    elif isinstance(data, bytes):
        return bytes.decode(data)
    else:
        return str(data)