added cleanup of directories for failed (empty, etc) downloads
store urls as unicode