Added escape octet logic to sent messages