change the endingcode to utf-8