code: public static String encode(Object o) {
          Type type = typeOf(o);
          return type.encode(o);
      }
docs: Encode a object into a String
  
  @param o the object to be encoded
  @return the encoded string representation of the object
  @throws IllegalArgumentException when object is a UDF type and Codec is not registered