Use psych for all rubies
In psych, to_yaml calls encode_with