Iterate substitute_args instead of kwargs, as we ignore anything that is not in substitute_args already. Fix an issue where a hook argument containing non-ascii characters caused an exception.
This plugin allows users to execute scripts on different events, as well as forward any arguments from the events to the script.