Changed "open" to "codecs.open"