Adding 'replace' as a template-usable function

This is necessary for safe-ing characters in e.g. a docker container name that you're putting into `etcd` as a key