append a zero when compression ends on an odd number