Serializes an EnumValue as the enum constant's name, decoding a name that is not among values as EnumValue.Unknown rather than failing. Pure Kotlin, not tied to any wire format.