Reduces a caller-supplied value to what is safe to persist.
the value to sanitize
what to call the root in reported paths ('data', 'context', 'payload')
'data'
'context'
'payload'
Reduces a caller-supplied value to what is safe to persist.