Support for usernames containing the @ sign.

Ejabberd clients can authorize by replacing @ sign with % sign.