I'd suggest sending something other than object names. Ideally, this would be something that can be indexed, such as integers, as you can use them to index an array or similar data structure. This could be something akin to object IDs, but not directly object IDs, as that may cause problems if the client and server don't use the same IDs for the same objects (e.g. different versions). You could define your own object IDs to use for sending over the network, then translate them back into object IDs locally.
At that point, turning a network ID into an object ID is as simple as object_id = network_to_object_map[network_id];.