add utf-8 support for script