fix encoding json problem