Trim messages before sending. Fixes #127