encoding in query