Convert symbols and numbers to strings in where clauses

cc @malcyL