Added a generalised safelySaveFile() method to IOUtil which ideally
would prevent the need for code duplication as exhibited in NBTIO and
ConfigFile - however, ultimately I've decided not to utilise it as it
involves a fair amount of reflection, which in simple cases like NBTIO
and ConfigFile, would simply lead to unnecessary overcomplication.