More changes to allow ByteStrings from an input file