Remove newlines from log messages