NUL-terminate strings on obstacks before finishing.