Encode version/release before doing equality check