Fix issue #12, by refactoring the parsing of each argument (using url-parse)