Fix broken codePoint check (OF-391)

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