Ensure a new line exists upon saving a file.