Add default encoding to prevent errors