Add char_encoding option