Fix 34532

Added a check if encodingType is null to allow it to retrieve the default
encoding.