COUCHDB-760 - Allow UTF-8 in attachment names. This is a backport of 1100254 from trunk except I had to manually add the couch_util:validate_utf8 function.