possible fix for mb_convert_encoding error in pdf output