Modified to fix jabber JID lowercase issue.