an url encoding bug

Sometimes the <code>term</code> param is sent without any encoding.