Fix use of deprecated Strings.toString(InputSupplier)
Remove deprecated Paylods.newPayload calls
Fix minor compilation warnings