@staticmethod
def _decode(data):
    """
        Ugly trick because of mixed content coming back from pypykatz
        Can be either string, bytes, None
        """
    try:
        return data.decode('utf-8', 'backslashreplace')
    except:
        return data
