static string toSection(int section)
{
switch (section)
{
case SCHEME: return "scheme";
case USER: return "userInfo";
case HOST: return "host";
case PATH: return "path";
case QUERY: return "query";
case FRAG: return "frag";
default: return "uri";
}
}