Fixed buffer size for output file names, fixing #7