Fixed rd_bin2hex()