Turn on utf8 flag for json