Fix template to safer escaping. Not sure why it was broken first.