Refactor loop.
Support the mailto: scheme, whose separator is ':' instead of '://'.