Converts instance to a string.
instance
@override String encodeString(T instance) { return instance.name; }