Solr query escape and Django 1.4 compatibility