code: @Override
      protected byte[] encodeType(String t) {
          byte[] ret = new byte[size];
          fill(ret, space);
          byte[] tbytes;
          try {
              tbytes = t.getBytes(UTF_8);
          } catch (UnsupportedEncodingException e) {
              throw new AssertionError(e);
          }
  
          int length;
          if (tbytes.length <= size) {
              length = tbytes.length;
          } else {
              length = size;
          }
  
          arraycopy(tbytes, 0, ret, 0, length);
          return ret;
      }
docs: {@inheritDoc}