Configured encoding, and fixed listchars for Windows.