Add charset, stub and composer.json sections.