Remove usage of WebURL::spec()

There is a comment in WebURL indicating that this API will be removed.  Also,
the conversion to std::string does not work outside test code.