lib/core: Added surrogate detection methods to `Char`