Added more hardening to file uploads