Fix using require.toUrl in conjunction with remote.get.