Mitigation of the beam hose instability in plasma-based accelerators is required for the realization of many applications, including plasma-based colliders. The hose instability is analyzed in the blowout regime including plasma ion motion, and ion motion is shown to suppress the hose instability by inducing a head-to-tail variation in the focusing force experienced by the beam. Hence, stable acceleration in plasma-based accelerators is possible, while, by use of proper bunch shaping, minimizing the energy spread and preserving the transverse beam emittance.