Update function.validateDomain.php

Fix pattern to support IDN TLDs, like .рф that becomes .xn--p1ai in punycode at this point. (inserted as .рф in domain edit page). Fixes issues #504, #640 and #1094