ensure json string is in utf-8 format rather than unicode