bugfix: don't truncate messages with a payload bigger than 65535 bytes