change encoder to charset