update encode to utf-8