fix charset to bmap