utf8 encoding and json escape