This is safe because `URLUtils::search` is by definition a `DOMString`.