Do not remove a leading dot in a path element.

"/folder/.hidden/" must be preserved.
"/folder/hidden./" must be converted to "/folder/hidden/"