Write optional-argument of sprintf

Close [Bug#8618](http://bugs.ruby-lang.org/issues/8618)