Fixed the passing of the content encoding to readers and writers
PEP8 gardening.
Added more unittests for unicode type captions.
Merge pull request #19 from pbs/UTF-8

Updated the readers and writers to properly handle unicode inputs or bytestrings.