bug #4658 Illegal string offset (Data_length, Index_length)

Signed-off-by: Marc Delisle <marc@infomarc.info>