refactored std::string => SVpv conversion into a macro (SVpv is the Perl internal string data structure).