When message is numerical, the call replace on message will cause a TypeError

When message is numerical, the call replace on message will cause a TypeError
For example:
```
link_to t("view.destroy"), path,
      method: :delete,
      class: 'btn btn-danger',
      :"data-confirm" => 42.0,
     ...
```
Will generate HTML like
```
<a class="btn btn-danger" data-confirm="42.0" data-method="delete" ...>...</a>
```
And will cause
```
Uncaught TypeError: Object 42.0 has no method 'replace' 
```