Actually use a format whose content does not depend on the OGR version (https://github.com/mapserver/mapserver/issues/4933)