fix utf-8 enconding for JOSNP.js