'Decode data with the given codec name.'

def _Decode(self, codec_name, data):

    try:
        return data.decode(codec_name, 'replace')
    except LookupError:
        raise RuntimeError('Codec    could    not    be    found.')
    except AssertionError:
        raise RuntimeError('Codec    failed    to    decode')
