use yaml dump, fucked up in 1.8 but  simpler