lab4 cut padding bytes in decode