My interpretation has always been that there is no "mechanism", as you put it, converting energy into mass, but rather energy always has an associated mass, no matter which form it is in. I believe that there's no conversion occurring. A box full of hot air has a higher mass than a box full of cooler air of the same density due to the air particles' higher kinetic energy. Charged batteries are more massive than dead ones due to their higher potential energy.