improved unicode handling, started integrating with couchdb