I specified that if the generated folder name is too long, truncate it and end it with three dots.
During QA the dots were missing, so I thought the dev missed that requirement.
Turns out #Windows eats the dots, you can't even rename the folder manually -- any dots at the end are eaten, same with whitespace.