xrdp-ng: refactor orders encoding