Added utf-8 encoding when saving JSON files.