Convert the query path of the URL to a dict.
    See _unicode regarding force_unicode.

def get_query(path, force_unicode=True):
    """
    Convert the query path of the URL to a dict.
    See _unicode regarding force_unicode.
"""
    u = urlparse(path)
    if not u.query:
        return {}
    p = parse_qs(u.query)

    if force_unicode:
        p = _unicode(p)
    return p