Revert "[TextEditor] Fixed encoding detection issue."

This reverts commit 3aeacb430512c1f8a71259e779b6b30a6793bd43.

We need a better approach for handling encodings. Since encoding detection is done with heuristics.
The encoding detection needs to be improved and maybe all files written with XS should be enforced to be UTF-8 with BOM to prevent VS.NET compatibility issues.