encode only Lucene dates