Mapping from RC5 to UIRT raw format

I've been using the sample UIRT application, and writing my own simple application, to learn and transmit IR codes for a remote control and receiver that use Philips RC-5. However, the learning does not always produce the same codes for a particular key, and the transmission is not 100% reliable. Does anyone have a mapping from RC-5 codes to UIRT raw format (UUIRTDRV_IRFMT_UUIRT), or a list of the mapped codes?