cli: Handle failure of cangjie_get_characters() instead of segsegv

Fixes issue #71