Avoid mercurial vfs layer ending up with: raise TypeError("Can't mix strings and bytes in path components")