ByteBufferInput read method don't use offset / Wildfly cannot load persistent session data

see https://issues.jboss.org/browse/JBMAR-163