changed searchwords format to encode