fixed a bug on unicode chars in values