Revert "use C.UTF-8 on all systems to workaround locale problems"

This reverts commit 7d35d3559aab188335990c6e948d7d480b9adb9d.