Guard against 'billion laughs' attack in our XMPP service