Fix issue with decoding exceptions.
Merge pull request #40 from justinabrahms/decode-error-fix

Fix issue with decoding exceptions.