Fixed Solr error when query contains some special characters