Script to covert text files (e.g. srt) into UTF-8, without BoM

I've posted a newer version of my script above to the Buttons/Scripts area.

You can use this for buttons or commands which add, remove or toggle the UTF-8 BOM at the start of the selected file(s) (or a file specified on the command line):