Compatibility fix for term_char