Cleanup and prototypes for codecvt_utf8