Include length info for encode_version prefix

Fix to address Issue #96 
While this will work with a single version. With multi-versions, it might be better to use encodedVersionLength than ENCODE_VERSION_LENGTH. As it may avoid a bug.