Strip trailing newlines from exception messages

This is so we can use the message with die/croak and have them output
the line number where the exception was produced.