Fix issues with slashes in REST