separate encoding check, add packages