Support HTTPS urls in parse_args

Not an expert on any of this but it seems to solve the problems in #24