avoid slashes in path if there are in tags