It seems visual studio 2017 always saves new files as UTF8-BOM. It also seems this was not the case with earlier versions of visual studio, but i could not find any documen
You can use EditorConfig with the charset property to define encoding for source files in VS 2017.