Change file reading to correctly transfer binary data to client.