replace newline by %n