Quick fix of issue #106.
Add decode test over random raw bytes, should catch error in #106.
More thorough testing of decoding raw bytes.
Merge pull request #107 from rycee/master

Quick fix of issue #106.