Fix escaping to make it compatible with Puppet v3.6.x