[Ide] Newly created files always create a BOM.
[SourceEditor] Fixed a bug where the BOM could get removed.