only truncate the message if it's longer than 2048