Fix IDNA optimization