newline fix for dos screen-destroying sequences