Fix RFC 6122 implementation

JID resourceparts should be able to contain "@" and "/" characters.

No testing has been done on this patch. Unit tests should probably be written to make sure stuff like this doesn't happen.