Fix memcached template escaping bug