fix HandleCharEnumOpcode exploit

fixes https://github.com/TrinityCore/TrinityCore/issues/10592