Trims the decoded byte slices to remove random padding

[#82051748]