[TextEditor] Fixed file save on linux.