update encode to UTF-16