Typesafe URLS

Haven't tested this.