Encode/Decode Blocks

You have a zero(null) character on the right side
answer.rstrip("\0")#:~)