GridFS: Restore Gary's version of upperFileName

Pull request #106 clobbered Gary's version. This puts it back.

It also moves ctype.h to the .c file where it's needed, and removes `_unlink` which is being handled in gridfs_test.c
Merge pull request #112 from noa--/gridfs_strupr

GridFS: Restore Gary's version of upperFileName