As an intense laser pulse propagates through an underdense plasma, the strong ponderomotive force pushes away the electrons and produces a trailing plasma bubble. In the meantime the pulse itself undergoes extreme nonlinear evolution that results in strong spectral broadening toward the long-wavelength side. By experiment we demonstrate that this process can be utilized to generate ultrashort midinfrared pulses with an energy three orders of magnitude larger than that produced by crystal-based nonlinear optics. The infrared pulse is encapsulated in the bubble before exiting the plasma, hence is not absorbed by the plasma. The process is analyzed experimentally with laser-plasma tomographic measurements and numerically with three-dimensional particle-in-cell simulation. Good agreement is found between theoretical estimation, numerical simulation, and experimental results.