It might be worth changing the test case to a loop 1 -> 251 (inclusive) - to make sure everything in between works?
Right, that's my plan.
BTW, after some initial debugging, it might actually be that there is a bug in IDN.toASCII.