Fixed Windows newline handling

Fixed Windows newline handling