Fix unicode conditional in jinja template fixes #12564