Fix for Store::urlToDirectory