newline fix for win and mac