1.8.7 compatibility for Enum lookup by name