backport 7acfc8ce; Fix date-based facet handling to ensure values are pr...

...operly escaped before sending to solr; ref #866