bug with strings with only leading ones

I believe the string '1' should be decoded to '00' and not '0000'