Fix encoding dependency