This constructor is sometimes called without argument, and sometimes with `null`.
But you're right, it could just be simplified by setting `null` as default value for `$charset`.