tweaking the ToAbsoluteUrl extension method so that it can handle open url templates