Added a backup when reading invalid JSON files for locales, in order to prevent losing of translations because of syntax errors

I lost an entire translation file before being able to back it up, just because there was some syntax error on the JSON file.

I then felt an urge to fix this in a very simple way, by renaming the invalid locale file to locale.json.invalid, therefore preventing it from being lost forever.