Could you use a ByteSourcePayload instead?  We deprecated StringPayload in 1.8.