Is he just moving bytes from the file into the file name? He should count the increased size of the file name in the size of the compressed file otherwise he’s not counting all of the essential data you need for the decompression.
You can decompress a gzip file without the file name (think about tar using a pipe.)