Updated the C++ interface to return values as std::vector<char> instead of