Improved the unsafe_symlink() code to not get fooled by extra '/' chars