added utf8 support