[downloader/common] Use `compat_str` with the error in `try_rename` (appeared in #2389)

Otherwise on python 2.x we get `UnicodeDecodeError` because it may contain non ascii characters.