Maybe more readable?
```ruby
"invalid reference `{{%s}}'" % reference
```