- import re;f=lambda s:''.join(re.match("[!'-*.0-9\w-]",c,256)and c or'%%%02X'%ord(c)for c in s) 
-   
- print(f("http://c...content-available-to-author-only...e.com/")) 
- print(f("[@=>]{#}")) 
- print(f("Test String")) 
- print(f("ÑÉÐÔ®")) 
- print(f("\x0f\x16\x7f")) 
				aW1wb3J0IHJlO2Y9bGFtYmRhIHM6Jycuam9pbihyZS5tYXRjaCgiWyEnLSouMC05XHctXSIsYywyNTYpYW5kIGMgb3InJSUlMDJYJyVvcmQoYylmb3IgYyBpbiBzKQoKcHJpbnQoZigiaHR0cDovL2MuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLmUuY29tLyIpKQpwcmludChmKCJbQD0+XXsjfSIpKQpwcmludChmKCJUZXN0IFN0cmluZyIpKQpwcmludChmKCLDkcOJw5DDlMKuIikpCnByaW50KGYoIlx4MGZceDE2XHg3ZiIpKQ==