Exception messages should be single-line strings

fixes #6095