Send 404 instead of crashing for invalid preview URL
Encode project.id in preview URL