Add a character in encoding method