Fixed #21033 -- Fixed uploaded filenames not always being truncated to 255 characters