move std::vector<char> response to local variable