URL-encoding for tokens

if a token has spaces, now we ecode that