Escape objects populated within template