Currently Wocky does really minimal validation and normalization of JIDs:
• the name part is checked for any of: "&'/:<>@
• the domain part is checked for being non-empty
• the resource part is not checked for anything (which is right!)
and then all three are lowercased.
XMPP Core §3.2–4 <http://xmpp.org/rfcs/rfc3920.html#addressing-domain> says that clients SHOULD apply these profiles before comparing JIDs (so we're not actively violating it). But we probably should anyway.