The ASCII 26 character signals the end of the file. I don't think this is a bug...