fix string query with non-ascii text