replace dot and colon in the path