Fix where chat prefix isn't counted in chunk size

The chat prefix would not be counted towards the overall chunk size and
could cause some messages not to be sent because they were too long.