remove main function, change utf8,utf-8 to u8, change error message