code: public static Writer asBufferedUTF8Writer(final File file) throws IOException {
          return Files.newBufferedWriter(file.toPath(), StandardCharsets.UTF_8);
      }
docs: Returns a writer that writes contents to the given file with {@link StandardCharsets#UTF_8} encoding.
  Additionally buffers the input stream to improve performance.
  
  @param file
  the file to write to
  
  @return a (buffered) writer for the file contents.
  
  @throws IOException
  if writing to the file results in I/O errors.