setup: Fix decoding in non-UTF-8 environments