Reinstate some bits to make file: URLs work.