URL encode dictionary terms

Moving the dictionary term from the data array to the URL meant that it
was no longer being URL encoded. I've wrapped it in `encodeURI()` to
accomplish that, in order to permit multiple-word terms to be defined.