changed open to codecs.open (hopefully not bugs)