Fix IDN things that broke tests (Fix #1336)