Handle the case where the encoder produces a null value (as it would for Some(null)) - possible fix to #99
Correctly handle the length case for 253 bytes - fixes #100
Merge pull request #4 from mauricio/master

Merge fixes from mauricio