ui.MainWindow.export_viterbi: fixed bug when exporting to .dat