Misc fixes and enhancements:
* fixed uninitialized use of ConvertToUnicode
* fixed a bug in orders
* CODEC_ID_NONE is already taken by avcodecs.h, so renamed to
RDP_CODEC_ID_NONE
* added misc checks all over the place
* started channels hardening