Works around IE bug with pathname not prefixing with slash.