** WARNING ** Very buggy. It's like that because the variable " i " should reset to 0 at the end of the encoding, but it doesn't. it instead goes on. ** ************* **