Why is the `.encode()` needed?