fix bug on wrong trimming of binary serialized record. issue #3098