testing equality regardless of encoding. test for Rcpp11/Rcpp11#219