Use `format` here.

```java
errorstr = format("%s\nname: %s version: %s arch: %s",
    errorstr, unescape(name), unescape(version), arch);
```