code: public static void writeDictionary(NaaccrDictionary dictionary, File file) throws IOException {
          try (Writer writer = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8)) {
              writeDictionary(dictionary, writer);
          }
      }
docs: Writes the given dictionary to the provided file.
  @param dictionary dictionary to write, cannot be null
  @param file file, cannot be null
  @throws IOException if the dictionary could not be written