Use u8_conv_from_encoding instead of using special code for the conversion.