Stop the server from falling down and breaking when there are non-ASCII
file names in your filesystem.  Tested on Ubuntu 12.04 LTS with a utf-8
filesystem and file names in Russian, Japanese, and Spanish.
fix for freebsd