All-optical control and stabilization of light polarization in optical fibers