Changed uid to be translated to network byte order on [de]serialization.