utf8 encode anything before trying to make JSON out of it