data serialization using typed netstrings