Properly escape query. Fix #59