only works with unicode charmaps