I do not care about the naming convention, but anyway. What about adding an addditional parameter to toString() Default set to UTF8. enum CS (UTF8, UTF16, UTF32, CSwhatever) toString(T,CS cs = 0) Guess I miss something. Bjoern