fix broken lucene escaping. fixes #324