fix bug with spaces in usernames and cache key