Fix editing of .txt files broken