Make encoding comment when_needed