Fix ruby 1.8.7 build

Rubocop asked to use `format` instead of `%` to format string.
But we still support ruby 1.8.7 and `format` on it is private.