- Use the Codec instead of Aliases in Python Standard Encodings

https://docs.python.org/2.7/library/codecs.html#standard-encodings
- Distinguish decoded data and data
- Make debug print conditionally