Optimization that only runs IDN processing if it would alter the domain name (non-ascii or uppercase characters). This patch has conributions from Petr Menšík.