Mock driver: convert all stub URL's

There were cases where we didn't catch stubbed out URL's and reported
invalid references with the mock driver. This fixes that and simplifies the
URL conversion code.