#59 Handle newlines correctly for windows platforms