code: public static void setText(Path self, String text, String charset) throws IOException {
          write(self, text, charset);
      }
docs: Synonym for write(text, charset) allowing:
  <pre>
  myFile.setText('some text', charset)
  </pre>
  or with some help from <code>ExpandoMetaClass</code>, you could do something like:
  <pre>
  myFile.metaClass.setText = { String s {@code ->} delegate.setText(s, 'UTF-8') }
  myfile.text = 'some text'
  </pre>
  
  @param self    A Path
  @param charset The charset used when writing to the file
  @param text    The text to write to the Path
  @throws java.io.IOException if an IOException occurs.
  @see #write(Path, String, String)
  @since 2.3.0