Use codecs.open instead of open
Updated .travis.yml