Fixed encoding for reading JSON.