Make buffer a vector of chars