Chang UnsupportedOperationException to IllegalStateException in RubyIO