handle unicode chars and strings