Fix rare MSIE bug with navigating to local files

[skip ci]