Modify set default encoding to 8bit