fix substring typo
escape data before being used in query

dangerous!
Merge pull request #581 from Raz0r/patch-5

fix parse_like_term() for pymongo