import re


def label_to_hashtag(label):
    """convert a label to a Twitter hashtag, taking care of spaces and special characters"""
    label = label.replace(' ','_')
    label = label.replace('-','_')
    label = re.sub(r'\W', '', label, flags=re.UNICODE)
    return '#' + label