Fix broken codePoint check (OF-391)

char in java is 16-bit. Therefore checking for anything greater then
0xFFFF makes not sense. We want to know here if the character is maybe
part of a surrogate pair, that's why isHighSurrogate(char) is now used.