Leading space in folder name removed on rename

This has been discussed several times including here.