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