Replace end of line with newline character, otherwise it outputs without line break