Fixed special character handling for file uploads