fix saving settings. conver tto unicode