Set preferred encoding