code: public FilterByteBuffer putString(String str, Charset charset) throws IOException
      {
          byte[] bytes = str.getBytes(charset);
          put(bytes).put((byte)0);
          return this;
      }
docs: Puts string as null terminated byte array
  @param str
  @param charset
  @return
  @throws IOException