Fix --unix-newlines/--in-place not working on Windows.

Closes #730.