make sure to encode URL components for API requests

notebook names can have spaces, hashes, other special characters.