Fix E2 editor renaming

It added ".txt" to the end of the file name. If you just opened the rename dialog and clicked ok without changing anything, it added another extension (resulting in .txt.txt)