If max_octets is set, don't split the message in the middle of an escape

this causes s.log to raise an error "malformed format string %" or similar