NXP-6012: fix escaping and performance in Document.FetchByProperty