add room for null character in allocation

Sometimes I got weird filenames.