add a c method to alias encodings