Avoid temporary String objects in PerfdataValue::Format.

Fixes #5248