fixed inserting of utf-8 characters