apply fix for #37 to support reading (but not interpreting) extra bytes in files