convert query to character so we don't seg on NA
Merge pull request #2 from johnlaing/master

convert query to character so we don't seg on NA