prevent json encode utf-8 error