If the array was null-terminated this would be pretty straight forward:
unsigned char u_array[4] = { \'a\', \'s\', \'d\', \'\\0\' }; std::string str
std::string has a method named assign. You can use a char * and a size.
http://www.cplusplus.com/reference/string/string/assign/