added utf8 io