Fix #709: String.codePointAt does not handle surrogate pairs.