encode to utf-8 to update md5 hash