Upon further investigation, it seems this error is caused by something (git-buildpackage?) setting LC_ALL=POSIX (which also overrides any LANG setting); forcing LC_ALL to a UTF-8 locale solves the issue. So I guess this is not a pkg_resources bug, but I'm not sure exactly where to reassign it to.