search term encoding