A self-supported peapod-like mesoporous TiO2-C array with excellent anode performance in lithium-ion batteries.