fix for empty default encoding