Fix encoding issue on app exchange search page 

`urllib.urlencode` doesn't like unicode. [Ticket](http://manage.dimagi.com/default.asp?151779).
:) Good point, just changed it to only encode if the value is `unicode`.