Modified the API for autoescape