c2s function

conversion of a vector of chars into a string