Check we're writing messages in the right format and buffering correctly