added utf8 endcode