added comment: need to add trim for trailing bytes, and merge multibyte
data that spans records