code: public static <T extends Serializable> String serialize(T obj, BaseEncoding enc) throws IOException {
      return enc.encode(serializeIntoBytes(obj));
    }
docs: Serialize an object into a String. The object is first serialized into a byte array,
  which is converted into a String using the given {@link BaseEncoding}.
  
  @param obj A {@link Serializable} object
  @param enc The {@link BaseEncoding} used to encode a byte array.
  @return A String representing the input object
  @throws IOException if it fails to serialize the object