split query as utf8 string to avoid splitting on non-ascii characters