$SAFE=4 is obsolete in Ruby 2.1.