encode selectted words to make it a valid URI parameter