Attempt to work around differences in YAML libraries between different versions of ruby