Convert %i (which formatter doesn't like) to %d for integers