Kill off some usages of sprintf.

Should have zero functional change.