Fix/file encoding

Tim, I think I fixed the problem with file names containing a special char. I've tested on Windows 7 and on OSX 10.8.4. It seems to work well on these systems but I was wondering if you have something else at your disposal to test this fix before rolling it out.