fixing newline chars