[2.3.x] Changes for https://java.net/jira/browse/GRIZZLY-1653 (ContentType.getByteArray() generates unnecessary garbage).