[IMPROVED] Auto-escape all used smarty variables

http://www.smarty.net/docs/en/variable.escape.html.tpl

Addresses #1233