Tedious line ending conversion to Windows