Fix binary file transfer (server side only).