Use strtr instead of sprintf.