fix: encode JSON string expressions during updates (#8669)