Fix extra newlines after copying issues on Windows.