Corrected EBML encoding with unknown segments sizes