Validate input_code length in cangjie_get_characters() and cangjie_get_characters_by_shortcode()