Fixes a PHP 5.4 exception in strtr()

The `String::insert()` was receiving an object in the `$data` argument
which was causing a problem with `strtr()`.