Error detection or forward error correction by redundancy in data representation