Workaround for usernames with trailing whitespace

Only accounts added before this commit can potentially have trailing
whitespace, as the commit before this one trims all newly added
usernames.