How to encode Type-Safe Enums