It basically replaces all #{x}# to #{f(x}# where f dumps correctly to yaml. It's a bit hacky but it's best that we can do without major rewrite. Change-Id: I575c810e4ee499c406f47aaabd4fe4ae8a420263 Closes-bug: #1539174