#! /usr/bin/env python3
import os
import urllib.parse

plain_str = input("File name: ")
quoted_str = urllib.parse.quote(plain_str)

for name in os.listdir():
    if name.startswith(quoted_str):
        new_name = name.replace(quoted_str, plain_str)
        os.rename(name, new_name)