condition the use of locale on the exitance of JSON

A better error message for cscript5.8 users than crashing :)