allow / and @ characters in jid resource

Here is the pull request as you suggested. It's my first time, so let me know if I should do anything differently.