Revert "Fix crash when decoding a = at end of the data"

This reverts commit 1544d178c4cf56ee8358f06475c4b3e45dddc11c.