Fixed logging illegal charset in MessageParser.