(1) make ridiculously small filename buffer larger; (2) don't accidentally try to generate files with names containing '/'.