def METHOD_NAME(cls, message):
    escaped_list = list()
    escaped_list.append(message[0])
    for c in message[1:-1]:
        if c in kamstrup_constants.NEED_ESCAPE:
            escaped_list.append(kamstrup_constants.ESCAPE)
            escaped_list.append(c ^ 0xFF)
        else:
            escaped_list.append(c)
    escaped_list.append(message[-1])
    return escaped_list