'Wrap a call to a normal unicode method up so that we return safe
results. The method that is being wrapped is passed in the \'method\'
argument.'

def _proxy_method(self, *args, **kwargs):

    method = kwargs.pop('method')
    data = method(self, *args, **kwargs)
    if isinstance(data, bytes):
        return SafeBytes(data)
    else:
        return SafeText(data)
