Handle newlines on Windows correctly.