Tag encoding schemes