windows compatible newline parsing