Fixed missing output encoding