Escape template params