Use a regex here to match the username.

A possible solution would be to match `@` until one of the following characters:
- end of string
- space
- "
- &
- '
- /
- :
- <
- >
- @

Related: [XEP-0106: JID Escaping](http://xmpp.org/extensions/xep-0106.html)