Encoding fixes
Fix default encoding loading