The makehex version is likely most accurate.
The issue you are having is as follows:
RC5 is a toggle bit protocol.
Read more here and also see the embedded link (Remote Central is the link and note the use of 'unused' code between the digits).
[Link: remotecentral.com]