This was a regression from 7.7.0 introduced by the Unicode support. And an empty workspace is now written as a UTF-8 BOM instead of an empty file, so testing for a zero-sized file is no longer a valid way to determine if there is nothing in the file.