Tailoring surface carboxyl groups of mesoporous carbon boosts electrochemical H2O2 production.