Trim messages before sending. Fixes #127
Merge pull request #128 from scrollback/trimmsg

Trim messages before sending. Fixes #127