It's a Linux thing too. It bit me in particular when running a script in a container that defaulted to ascii rather than utf-8 locale.