Try to press alt when you charge to enemy with cavalry. That should force cavalry use lances instead of swords (which ruins the whole charge).