leverage Rcpp's fast hashing for character vectors, but hack the ordering