Fix issue with %i and Ruby < 2.0