GUI-568: Leverage Pyramid's BeforeRender event to escape str/unicode variables passed to templates.