convert IDs to strings when marshaling, fixes #10