Use char* instead of std::string in packet serialization.