decode bytes clean-up