MvdV>> How so? What do you mean by "unwanted leakage"? That notepad MvdV>> inserts a BOM? What is the problem? A BOM can be useful as a MvdV>> signature to help autodetect UTF-8.
KE> The BOM as used in your case is part of the embrace and extend KE> attitude from MS.
Yes. So what is the problem?
KE> Moreover it has noring to do with UTF-8 it is a UTF-16 fixed KE> bytelength thing.
> The UTF-8 representation of the BOM is the byte sequence 0xEF,0xBB,0xBF. > A text editor or web browser interpreting the text as ISO-8859-1 or > CP1252 will display the characters  for this.
> The Unicode Standard permits the BOM in UTF-8,[2] but does not > require nor recommend its use.[3] Byte order has no meaning in UTF-8,[4] > so its only use in UTF-8 is to signal at the start that the text stream > is encoded in UTF-8. The BOM may also appear when UTF-8 data is > converted from other encodings that use a BOM. The standard also does > not recommend removing a BOM when it is there, so that round-tripping > between encodings does not lose information, and so that code that > relies on it continues to work.[5] [6]