code: public static PrintWriter newPrintWriter(Path self, String charset) throws IOException {
          return new GroovyPrintWriter(newWriter(self, charset));
      }
docs: Create a new PrintWriter for this file, using specified
  charset.
  
  @param self    a Path
  @param charset the charset
  @return a PrintWriter
  @throws java.io.IOException if an IOException occurs.
  @since 2.3.0