fix utf-8 encoding & exit, die function banned