Remove use of %i for Ruby 1.9 compatability