key_commit: Fixed an error that was coming up if a reason to cancel contained an apostrophe