Fix getMode in EnforcingMode enum to align to semantics of valueOf() (where it throws IllegalArgumentException if the string doesn't correspond to an enum).