Investigating encoding failure at end of message.