add charset mock.