moved try before quote in api calls to fix unicode search problems