code: public void setEncoding(String charset) {
      Validator.validate(!Validator.isBlank(charset), "encoding cannot be blank");
      this.encoding = charset.trim();
    }
docs: Sets encoding for the data to be published. If none specified, default is
  UTF-8
  
  @param charset encoding for expected log messages