UTF-8 text files with Byte Order Mark may be of interest.
In reply to Re: Rogue character(s) at start of JSON file by GrandFather in thread Rogue character(s) at start of JSON file by Bod