Fix type conversion std::string -> Rcpp::RawVector