import unicodedata


def remove_control_characters(text):
    """Removes control (C*) Unicode characters."""
    if not isinstance(text, str):
        return text
    # Removes all other control characters and the NULL byte
    # (which causes issues when parsing with pandas)
    return ''.join(ch for ch in text if unicodedata.category(ch)[0] != 'C')