This could be done more clearly with a regexp, changing `:([^/]*)` to `{\1}`.  But I don't see why this gets left as a string, when it's later split on `/` in `produceEvent`.