idnx (rubygems):     Converts International Domain Names into Punycode.     It uses (via FFI) 'libidn2' for Mac and Linux; for Windows, it uses native APIs. 
Keywords: ffi|idna|libidn2|ruby