h2r seemd to be using beXXtoh functions instead of htobeXX. Foruntately ROT13 works symmetrically on our systems..!