Reduces number of allocations during error message formatting.
Differential Revision: https://code.wildfiregames.com/D3871