Fixes for ansible 1.7 and template encoding.