minor changes in dmzsm to avoid charset compatibility problems