def slurp(filename, encoding='utf-8'):
    """
    Given a `filename` string, slurp the whole file into a string
    """
    with open(filename, encoding=encoding) as source:
        return source.read()
