ElasticSearch query sanitising

Elasticsearch breaks when people use special characters etc.