xrdp-ng: encode using starting buffer pointer for RemoteFX