initial conversion

seems to work after a few unicode fixes