Fix unicode filenames on OSX

See this SO answer for details: http://stackoverflow.com/a/5582439/44289