fix format strings for uid/gid values in putpwent/putgrent