docs: public static File copy(InputStream stream, String encoding) throws IOException
    {
      File file = createTempFile();
      copy(new InputStreamReader(stream, encoding), new OutputStreamWriter(new FileOutputStream(file), encoding));
      return file;
    }