fix for urlencoding in usernames
avoid reference to undefined var