Make import of codecs.open more Pythonic on Py2. Use encoding kwarg when reading content, not just writing it. Fixes ASCII codec errors.