Fix date-based facet handling to ensure values are properly escaped before sending to solr; fixes #866