remove stray newlines from log message