Python 3.x tempfile requires unicode
Python 3.x tempfile requires unicode

Explicitly encode the output of yaml dump, and allow tempfile to handle
the unicode output as it works correctly for python 2.7 and 3.x+

Change-Id: I919b2565a7f3857586ee6cc09b787160472e9deb

tamac-io/jenkins-job-builder,onshape/jenkins-job-builder,tamac-io/jenkins-job-builder,wikimedia/integration-jenkins-job-builder,lukas-bednar/jenkins-job-builder,wsoula/jenkins-job-builder,puppetlabs/jenkins-job-builder,wsoula/jenkins-job-builder,gforcada/jenkins-job-builder,wikimedia/integration-jenkins-job-builder,joostvdg/jenkins-job-builder,gforcada/jenkins-job-builder,joostvdg/jenkins-job-builder,wikimedia/integration-jenkins-job-builder,puppetlabs/jenkins-job-builder,OSSystems/jenkins-job-builder,phinexus/jenkins-job-builder,joostvdg/jenkins-job-builder,wsoula/jenkins-job-builder,onshape/jenkins-job-builder,phinexus/jenkins-job-builder,twc-openstack/jenkins-job-builder,rsig/jenkins-job-builder,tamac-io/jenkins-job-builder,dataxu/jenkins-job-builder,phinexus/jenkins-job-builder,onshape/jenkins-job-builder,joostvdg/jenkins-job-builder,gforcada/jenkins-job-builder,lukas-bednar/jenkins-job-builder,onshape/jenkins-job-builder,dataxu/jenkins-job-builder,twc-openstack/jenkins-job-builder,phinexus/jenkins-job-builder,phinexus/jenkins-job-builder,lukas-bednar/jenkins-job-builder,gforcada/jenkins-job-builder,twc-openstack/jenkins-job-builder,dataxu/jenkins-job-builder,wikimedia/integration-jenkins-job-builder,puppetlabs/jenkins-job-builder,lukas-bednar/jenkins-job-builder,OSSystems/jenkins-job-builder,gforcada/jenkins-job-builder,wsoula/jenkins-job-builder,twc-openstack/jenkins-job-builder,rsig/jenkins-job-builder,dataxu/jenkins-job-builder,OSSystems/jenkins-job-builder,rsig/jenkins-job-builder,tamac-io/jenkins-job-builder,rsig/jenkins-job-builder,OSSystems/jenkins-job-builder,puppetlabs/jenkins-job-builder,wikimedia/integration-jenkins-job-builder