minor tweaks to libidn.sh