Respect the encoding type