All strings (decoded JSON text, the argument of json_string(), the key argument of json_object_set()) are checked for valid UTF-8.