fixed unicode sending error for non-ascii characters