s4-ldb: fixed string length handling on index records