mainwindow: log file treated as a text file, this should now force windows \r\n endings.