Revert "Use .to_atoms() and .to_strings()"

After some discussion, this seems to break several things (likely a bug in
xcffib, not this commit in particular). We'll un-revert this when we fix
whatever is causing problems in xcffib.

This reverts commit bae4b9e00decd168d43201ab722f79a5be40f6ee.