def lookup_charset(in_charset_name):
    """ Provides some additional aliases for text encoding names. """
    out_charset_name = in_charset_name
    if out_charset_name is not None:
        out_charset_name = out_charset_name.lower()
        out_charset_name = out_charset_name.replace("-", "_")
        if out_charset_name == "windows-1252":
            out_charset_name = "cp1252"
    return out_charset_name