cleanup uri paths