'Standardizes release name for failed DB'

@staticmethod
def prepareFailedName(release):

    fixed = urllib.unquote(release)
    if fixed.endswith(u'.nzb'):
        fixed = fixed.rpartition(u'.')[0]
    fixed = re.sub(u'[\\.\\-\\+\\    ]', u'_', fixed)
    fixed = fixed
    return fixed
