updated to set UTF-8 when rendering templates