remove newline from logged messages