Write unicode to codecs file