Change toSingleByteChars method Logic