Fix 1.9.x default encoding issue