Typo, should be `encode_scopes`