Better newline replacement