Fix unicode conditional in jinja templating