emacs-mode fix for emacs 22: need to check whether codepoints outside the BMP are supported by emacs