fixing bug #1

fix saving file in utf8 format