getDecByChar(): Returns a char code (considering UTF-16 surrogate pairs)
getDecBySafeChar(): Returns a char code (considering UTF-16 surrogate pairs, without additional checks)