Urlencoding usernames

Adding url encoding to usernames.