Fix URL generator to take protocol and host into account to fix usage with file protocol in IE7/8