Include length info for encode_version prefix

Fix to address Issue #96