PHP script to build an XML registry from the plain text files.
You need the Net_IDNA2 script from PEAR.