Fixes decoding for decryption errors
Merge pull request #125 from cconstantin/decode-fix

Fixes decoding for decryption errors