'takes quoted string and unquotes % encoded values'

def unquote_bytes(self, path):

    res = path.split('%')
    for i in range(1, len(res)):
        item = res[i]
        try:
            res[i] = (bytes([int(item[:2], 16)]) + item[2:])
        except ValueError:
            raise
    return ''.join(res)
