Convert message to string

Before trying to check for a trailing newline, and add a test
Merge pull request #405 from mal/issue-404

Fix #404 with to_s