Escape usernames. Closes #2149.