Fix cache on windows

If the file already exists, on windows, the rename causes an OSError
File Already Exists on the os.rename call

This sanely handles that issue
Also fix unicode error for python2 with file caching
Bad typo
"Merge pull request #343 from kageurufu/master\n\nFix cache on windows"