Use yaml for string unescaping instead of json

The ruby JSON implementation didn't work for this under certain
versions, mostly Ruby 1.8.7.