Fixed deletion of repository when it contained '#'