Add Encoding utilities