title: How to avoid writing BOM character to a file?
body: <p>I have some Java code that writes to a text file, specifying UTF-8 as encoding.</p>
  
  <p>Now, some of the files written contain a <code>&lt;U+FEFF&gt;</code> character at the very start, which creates a mess for other programs that use the file.</p>
  
  <p>I can't change the behavior of the other programs, and I can't post-process files externally since they may be on another machine.</p>
  
  <p>Is there any way to write the file <em>without</em> adding this character to the start?</p>