add method utf8.from_mbcs to convert mbcs string to utf8 string
deal with line endings