fixed crashes caused by triggers parsing errors
UTF-8 for plugins