CORE-4441: Fixed the file upload stuff to validate the filename for bad
characters.