export functions converting character encoding