Update .txt template handling to support unicode interpolation and output properly