Sinatra app to convert demo Tumblr content XML to properly escaped JSON