Escape values printed in templates