Fixes even more `Unicode{En,De}codeError`s

I'm sorry about so many commits, but in every one of them I thought I had fixed
the bug, only to be suprised after deploy. It is incredibly frustrating to deal
with bugs that only show up in production.