Params with unicode chars length calculation fixed

Params with unicode chars length calculation fixed.