Fix for --encoding vs. DefaultEncoding and --test.