fixed uri encoding differences between obj and str while passing them to
jquery ajax to query for solr