truncate data to 7 bit