Fix: Ensure correct encoding type for JSON