protect from recursion when transcoding utf8 in jsonpersist