Avoid error trying to encode a value that is a list object (e.g. a Mixpanel property)