Removes need for monkey patching in server_protocol by using bytearrays