code: @Override
      public void dump(TestSet testSet, File output) {
          Charset charset = null;
          if (representer instanceof Tap13Representer) {
              charset = Charset.forName(((Tap13Representer) representer).getOptions().getCharset());
          } else {
              charset = Charset.defaultCharset();
          }
  
          try (FileOutputStream outputStream = new FileOutputStream(output); OutputStreamWriter writer = new OutputStreamWriter(outputStream, charset.newEncoder())) {
              this.dump(testSet, writer);
          } catch (IOException e) {
              throw new ProducerException(String.format("Failed to dump TAP Stream: %s", e.getMessage()), e);
          }
      }
docs: {@inheritDoc}