Fix dangerous Sprintf