Handles case where a property has a uri/address key but the value is not matched against the value regex. In this case, we now sanitize the value.

Comment From: bclozel

Closing in favor of the fix variant committed in gh-23037. Thanks!