json encode function change for utf8