Self-focusing as a pulse sharpening mechanism