Add hack to deal with Glassfish non spec complient chunking