code: private static Writer getWriter(final File aFile) throws FileNotFoundException {
          try {
              return new OutputStreamWriter(new FileOutputStream(aFile), StandardCharsets.UTF_8.name());
          } catch (final java.io.UnsupportedEncodingException details) {
              throw new UnsupportedEncodingException(details, StandardCharsets.UTF_8.name());
          }
      }
docs: Gets a writer that can write to the supplied file using the UTF-8 charset.
  
  @param aFile A file to which to write
  @return A writer that writes to the supplied file
  @throws FileNotFoundException If the supplied file cannot be found