Cleanup template url generation.
Escaping firebase reference issues.