#238: Log errors on encoding/decoding with the key name.
Merge pull request #241 from dblock/log-error-on-encoding-decoding

Log errors on encoding/decoding with the key name.
Fix typos