Fix SocketFileWrapper.readline crashing if max_char not given