i-Motifs are more stable than G-quadruplexes in a hydrated ionic liquid.