fix for integer overflow in HttpObjectEncoder

Motivation:

Due to integer overflow bug, writes of FileRegions to http server pipeline (eg like one from HttpStaticFileServer example) with length greater than Integer.MAXVALUE are ignored in 1/2 of cases (ie no data gets sent to client)