the issue with multibyte character length fixed