Introduce sfBeforeFreeTextSubstitution hook, replacing the now deprecated sfModifyFreeTextField hook

Change-Id: I7103b0d039b0efc141588dd60b77d936f011c51a