modify file codeing to utf8. add mem test.