[WO-326] correctly parse input addresses

Fixed address parsing. Also fixed paths in the test/index.js (to be able to run the tests in a local browser).

It is safe to use unicode domains when generating addresses, these are parsed to punycide versions automatically.