Fix date-based facet handling to ensure values are properly escaped befo...

...re sending to solr; fixes #866