! Convert a use of fopen/fwrite/fclose to file_put_contents (Mantis 4913) and also have it report whether something was saved properly or not (another for #802)

Signed-off-by: Peter Spicer <sleeping@myperch.org>
Merge pull request #987 from Arantor/release-2.1

! Convert a use of fopen/fwrite/fclose to file_put_contents (Mantis 4913...