Escaping terms in topN queries

topN query didn't work if terms contained special lucene characters, such as `\`.