handle user@corp.net username correctly

(cherry picked from commit 248c9185084e99121ea5e99610384bb3a2c0f803)
Merge pull request #2051 from bmiklautz/feat/atusername

handle user@corp.net username correctly