This bug will cause rencode to hang if the invalid typecode is included in a sequence type (list, dict) since the position will not change and the loop checking for the termination byte never returns. This change is a copy of PR #29 with a few aesthetic changes.
572ff74