Fix invalid cast fix resulting in chat messages beeing limited to 256 bytes