Add nqp::encode(...) op for encoding to a buffer.