"example..com" is not a valid IDN, IDN.toASCII("example..com") should throws IAE, rather than throw java.lang.StringIndexOutOfBoundsException.