Revert "Use UTF-8 everywhere, please"

This reverts commit 87297aecc147ba326097eff7a8f7b7eb29525e26.

This doesn't help, libmagic is being dumb