public OutputAppender append(String str) {
   return output.append(str);
 }
 public String getEncoded() {
   return output.getTarget().toString();
 }