def METHOD_NAME(value):
    if not value:
        return ()
    if isinstance(value, str):
        value = parse_qsl(value, keep_blank_values=True)
    if isinstance(value, dict):
        value = value.items()
    return [(fix_broken_encoding(k.strip()), fix_broken_encoding(v)) for k, v in value]