Improved Json::encode() security.