Changed EventHook name storage to use AString (bug 6188, r=psychonic).