Handle deserialization when enums are lower-/mixed-case