ensure serialized values are converted to UTF-8 to be used as JSON payload