Make getURI() pure regarding $_SERVER.