Fixed bug with length non-ASCII strings