Sanitize template evaluation for smartplaylist