fixed autoescape bug with swig