IEncoder implemenation for a LenghtPrefixed. Resolves #4.