updated SafeToRubyVisitor based on Psych 2.0.0