fix line_wrap of messages with newline/0xA characters -- NOTE: NOT tested yet
line_wrap: (tested:) fix busyloop off-by-one + add newline compaction
line wrapping minor cleanups