modify encode to utf-8