Change fix for unicode encoding

Now converts data to unicode. Good if anyone wants to save unicode
characters in data in the future.