Cleanup buffer before-save-hook.