Before this fix, a malicious client could cause a websocketpp server to create an invalid std::string.