report short reads
test parsing of all possible magic numbers
Simplify check for byte encoding. Lowercase error message.