Update a character encoding