use codecs.open for bytes/str py2/3 read() issue