URLEncode usernames before talking with the server

If there are multiple people with the same last name, you may end up
with a username that has a space in it.