Pass std::string to DetectEncoding