Add fsync to the turtle file and the to the directory when renaming it into place

I know this isn't related to your change, but is it safe to nul out an element in the string passed into this function?