Use Psych instead of YAML.

This fixes Ruby 2.0 compatibility.