Convert key string to lower case

The key string used to query the rules must be converted to lower case because keys are also added in lower case. Fixes problems with keys that contain upper case letters like "database.bypassRestricted".