[MacRuby] #849: MacRuby throws the exception of "Encoding::CompatibilityError" with various cases.