Add tilde to characters for testRandomQueries2