Local files need to be opened as binary.