Ensure there's a new line at the end of recorded XML files