GridFS: Restore Gary's version of upperFileName

This puts back Gary's version of upperFileName which was clobbered when pull request #106 was merged.

It also moves `#include <ctype.h>` to `gridfs.c`, the only place it's needed, and removes `_unlink` which is being handled in `gridfs_test.c`.