fix issue with email interpolation in templates

The auth-server needs this fix to correctly substitute template variables.

/cc @chilts