core: Replace all calls to *sprintf by gpgrt_*sprintf.