Escape $action in hook

Change-Id: I9953520c4fcc37ff26c0c1d2e7cb16c5fb82d39d