import unicodedata


def strip_diacritics(text):
    """Return the given text string with Unicode diacritics removed."""

    # http://stackoverflow.com/a/518232
    decomposed_text = unicodedata.normalize('NFD', text)
    stripped_text = [char for char in decomposed_text if
                     unicodedata.category(char) != 'Mn']
    result_text = ''.join(stripped_text)
    return result_text