filter control characters during message processing