i18n, encoding, & cleanup