code: public static void write(Path self, String text, boolean writeBom) throws IOException {
          write(self, text, Charset.defaultCharset().name(), writeBom);
      }
docs: Write the text to the Path.  If the default charset is
  "UTF-16BE" or "UTF-16LE" (or an equivalent alias) and
  <code>writeBom</code> is <code>true</code>, the requisite byte order
  mark is written to the file before the text.
  
  @param self     a Path
  @param text     the text to write to the Path
  @param writeBom whether to write the BOM
  @throws java.io.IOException if an IOException occurs.
  @since 2.5.0