don't include newlines in log messages