Strip the newline characters from output messages.