Use getpreferredencoding() instead of getdefaultlocale()
-rw-r--r-- 20 .hgignore
-rwxr-xr-x 36987 youtube-dl