you could also use payload.toString(payload.readIndex(), hostLength, UTF_8) and then skip the bytes. This will reduce the object creations.