Same concern as above.

I'm guessing this here in order to coerce the types of the attributes? Is that necessary? (e.g., instances of `str` also have the `encode` method, and it returns the same thing).