Here is the whole code of files.py in case someone wants to comment on somethign about how to properly encode/decode the filanames, which seems to be the problem. http://pastebin.com/qXasy5iU