safe dump yaml to avoid unicode warnings from the yaml lib
remove dangling vim swap file