Fixed mistake with file-read where it was being read as ascii text, when it should be read as binary.