@staticmethod
def decode_esc_chars(data):
    """Replace 0xDBDC with 0xCO and 0xDBDD with 0xDB"""
    result = []
    while len(data):
        char = data.pop(0)
        if char == 219:
            char2 = data.pop(0)
            if char2 == 220:
                result.append(192)
            elif char2 == 221:
                result.append(219)
            else:
                raise Exception('Char 0xDB NOT followed by 0xDC or 0xDD')
        else:
            result.append(char)
    return result
