Handle the case when SystemEncoding is None