Thanks,
The source of my issue, is that I had set UTF-32BE as the encoding default.
Edit→ Preferences → Files → Encodings → Default encoding (new files)
I expected
Document → Set Filetype → Scripting Languages → Shell script
to set encoding according to the Filetype intent.