completed rough draft of changecharset()