Yaml safe_load does not handle exceptions.  Closes #2051