Correctly handle the length case for 253 bytes - fixes #100