How decoding works
Input is split into groups of digits, one per character, and each group is read as an unsigned binary integer: 01100101 is 101 in decimal. That number is looked up as a character code, so 101 means lowercase 'e'. The bit-length setting fixes the width of each group: 8 bits covers codes 0 to 255, 7 bits only 0 to 127. Leftover digits after the last whole group are the usual sign that the width does not match how the binary was produced.