Fix end-of-line conversion bug when using Windows.