Remove assumption about Latin-1 in the command-line tools.
