In the above 3 cases "example.com" should be parsed as part of a path, not a hostname. So in each of these our output should end with "?"