Add .txt when saving files if it's not present (fixes a Windows bug when the default drive name is cleared by typing something else).