Replace String.charCodes with String.codeUnits