rubinius/rubinius — pull request #2409 by razielgn (2013-07-02 14:15:04+00:00)
Title: Feature gsub raise on invalid encoding

Calling String#gsub and String#gsub! on a string with invalid encoding
should raise ArgumentError.

Discovered when running the svenfuchs/i18n test suite.