fix cast.save and decode import data to utf-8