fix internal messages with LF in them

Thanks to Ahto Truu for spotting this problem.