Build escaped queries in the app itself

universally convert String to Text