fixed rex_string::buildQuery()