fixed protobuf serialization

Google Protobuf SerializeToString potrebuje pointer, ne referenci.