fix packing and unpacking of agent IDs
Merge pull request #45 from birarda/agent-id

fix packing and unpacking of agent IDs