Fix string concatenation in RegisterRestPath()

Entire format string needs to be concatenated before calling Fmt().