import base64


def decode(query):
    """
    Decode query to utf-8 string.

    :param query:
    :return: expression
    """

    expression = base64.b64decode(query).decode('utf-8')
    return expression.strip()